package ysq.xyg.shop.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import ysq.xyg.base.dao.BaseDao;
import ysq.xyg.shop.model.po.ShopOrderCoupon;
import ysq.xyg.shop.model.vo.ShopOrderCouponCountVO;
import ysq.xyg.shop.model.vo.ShopOrderCouponExportVo;
import ysq.xyg.shop.model.vo.ShopOrderCouponVo;

import java.util.List;

/**
 * 商城模块-商品劵管理-Dao层接口类
 *
 * @author congcong tao
 * @date 2019-4-28 11:19:33
 */
@Repository
public interface ShopOrderCouponDao extends BaseDao<ShopOrderCoupon> {

    List<ShopOrderCoupon> selectEntityList(ShopOrderCouponVo shopOrderCouponVo);

    Double selectSumPrice(ShopOrderCoupon shopOrderCoupon);

    List<ShopOrderCoupon> selectEntityRightList(ShopOrderCouponVo shopOrderCouponVo);

    List<ShopOrderCouponCountVO> selectCountList(@Param("memberId")String memberId);

    List<ShopOrderCouponExportVo> selectGroupByMember(ShopOrderCouponVo shopOrderCouponVo);

    void stockIn(@Param("ids") String[] ids);

    void updateCashStatus(@Param("orderId") String orderId, @Param("memberIds") String[] memberIdArr, @Param("cashStatus") String cashStatus, @Param("cashMessage") String cashMessage);
}